<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" type="text/css" href="../js/tools/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../js/tools/themes/icon.css">
<script type="text/javascript" src="../js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/tools/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/tools/easyloader.js"></script>

<style>
  body{background-color:#ffffff;}
  table{table-layout:fixed;font-size:12px;}
  tr{background-color:#F1F6F6;}
  td{border:1px solid #D9D9D9;color:black;padding:2px;}
  td a{text-decoration:none;}
  .acss{background-color:#982987;color:#FFFFFF; padding-right:3px; padding-left:3px;}
</style>
<script type="text/javascript">
 function dredge(id,obj)
 {
  
               $.messager.confirm('消息框', '你确定要开通该城市吗?', function(r){
					if (r){
					   $.getJSON("../groupbyajax/dic!dredge.action",{id:id},function(data){
					      if(data.success)
					      {
					       $(obj).addClass("acss"); 
					      } 
					   })
					}
			     });
 }
</script>
</head>

<body>
  <div>
  	<table >
		<s:iterator value="provinceCityMap" id="column">   
		     <s:set name="total" value="#column.value.size"/> 
		     <tr>  
		       <td style='width: 120px; vertical-align: top;font-weight: 700; '><s:property value="#column.key"/></td> 
		       <td >
			     <s:iterator value="#column.value" >   
			       
			      
			        <s:if test="flag==1">
			           <a class="acss" href="javascript:void(0);" ><s:property value="name"/></a>
			        </s:if>
			        <s:else>
			           <a  href="javascript:void(0);" onclick="dredge(<s:property value="id"/>,this)"><s:property value="name"/></a>
			        </s:else>
			           
			     </s:iterator> 
			   </td>
		     </tr> 
       </s:iterator>   
  	</table>
  </div>
</body>
</html>